cmake_minimum_required(VERSION 3.10)

project(client LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)

set(BOOST_ROOT "/usr/local/hslDir/mylib/boost")

find_package(Boost REQUIRED COMPONENTS system thread)

#搜索src下的源文件
file(GLOB SOURCES "src/*.cc")



add_executable(client client.cc ${SOURCES})
#添加include目录下的头文件
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

target_include_directories(client PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(client PUBLIC ${Boost_LIBRARIES})
